package statisticalanalysis;

import java.util.Vector;



public class Interval {
	double size = 0;
	double minValue = 0;
	double maxValue = 0;
	int nOfNodes = 0;
	Vector<Double> weights = new Vector<Double>();
	Vector<Integer> ids = new Vector<Integer>();

	public Interval(double minV, double size) {
		this.minValue = minV;
		this.size = size;
		this.maxValue = minV + size;
	}

	public void addNode(int id, double weight) {
		ids.add(id);
		weights.add(weight);
		nOfNodes++;
	}

	public Vector<Double> getWeights() {
		return weights;
	}

	public Vector<Integer> getIds() {
		return ids;
	}

	public double getSize() {
		return size;
	}

	public double getMinValue() {
		return minValue;
	}

	public double getMaxValue() {
		return maxValue;
	}
	
	public int getNofNodes(){
		return nOfNodes;
	}

}